package com.test.demo;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenwenchao
 * @version V1.0
 * @className: DemoController
 * @description: 测试
 * @date 2022/12/30 9:41
 */
@RestController
public class DemoController {
    private static final Logger LOGGER = LoggerFactory.getLogger(DemoController.class);

    @GetMapping("demo")
    public String demo() {
        String version = "V1";
        System.out.println("system.version="+version);
        LOGGER.info("version={}", version);
        return "Version=" + version + ",ip=" + HostUtil.getHostIp();
    }
}
